package com.view.test.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.view.test.R;
import com.view.test.view.LineChartView;

public class LineChartActivity extends AppCompatActivity {
    private LineChartView linechar;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_line_chart);

        linechar = findViewById(R.id.linechar);
        linechar.setAxisDataX(new String[]{"12/11", "12/12", "12/13", "12/14", "12/15", "12/16", "12/17"});
        linechar.setAxisDataY(new float[]{0,4800 , 2, 1200, 2, 4800, 0});
        linechar.setMaxValue(6000);
    }
}
